package com.j2eefast.bussiness.contract.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>账套工资项目</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("pay_wages")
@HeadRowHeight(20)
@ColumnWidth(15)		// 表头行宽
@HeadFontStyle(fontHeightInPoints = 12)
@ExcelIgnoreUnannotated
public class PayWagesEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    protected Long id;

    //账套名称
    @TableField(value = "pay_id")
    @ExcelIgnore
    protected String payId;
    //工资项目
    @TableField(value = "wages_project")
    @ExcelProperty(value = "工资项目",index = 0)
    protected String wagesProject;
    //项目类型
    @TableField(value = "project_type")
    @ExcelProperty(value = "项目类型",index = 1)
    protected String projectType;
    //初始值
    @TableField(value = "init_value")
    @ExcelProperty(value = "初始值",index = 2)
    protected String initValue;
    //计算公式
    @TableField(value = "formula")
    @ExcelProperty(value = "计算公式",index = 3)
    protected String formula;
    //备注
    @TableField(value = "remark")
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    protected String updateBy;

    @Override
    public String toString() {
        return super.toString();
    }
}
